﻿using Microsoft.EntityFrameworkCore;
using Model.Entity.Article;
using Model.Entity.Article.Relation;
using Model.Entity.Comment;
using Model.Entity.Comment.Relation;
using Model.Entity.District;
using Model.Entity.File;
using Model.Entity.Member;
using Model.Entity.Type;
using Model.Entity.User;
using Model.Entity.User.Relation;
using Model.Entity.Ware;

namespace Model
{
    public class TianXiaHuiForumManagementSystemDbContext : DbContext
    {
        #region Article
        public DbSet<TB_ArticleToCollect> TB_ArticleToCollect { get; set; }
        public DbSet<TB_ArticleToLike> TB_ArticleToLike { get; set; }
        public DbSet<TB_ArticleToType> TB_ArticleToType { get; set; }
        public DbSet<TB_ArticleToView> TB_ArticleToView { get; set; }
        public DbSet<TB_Article> TB_Article { get; set; }
        #endregion

        #region Comment
        public DbSet<TB_CommentToCollect> TB_CommentToCollect { get; set; }
        public DbSet<TB_CommentToLike> TB_CommentToLike { get; set; }
        public DbSet<TB_CommentToView> TB_CommentToView { get; set; }
        public DbSet<TB_Comment> TB_Comment { get; set; }
        #endregion

        #region District
        public DbSet<TB_District> TB_District { get; set; }
        #endregion

        #region File
        public DbSet<TB_FileInformation> TB_FileInformation { get; set; }
        #endregion

        #region Member
        public DbSet<TB_Member> TB_Member { get; set; }
        #endregion

        #region Type
        public DbSet<TB_ArticleType> TB_ArticleType { get; set; }
        public DbSet<TB_CheckType> TB_CheckType { get; set; }
        public DbSet<TB_GenderType> TB_GenderType { get; set; }
        public DbSet<TB_MemberType> TB_MemberType { get; set; }
        public DbSet<TB_PaymentStateType> TB_PaymentStateType { get; set; }
        public DbSet<TB_PaymentType> TB_PaymentType { get; set; }
        public DbSet<TB_StateType> TB_StateType { get; set; }
        public DbSet<TB_UserType> TB_UserType { get; set; }
        public DbSet<TB_WareType> TB_WareType { get; set; }
        #endregion

        #region User
        public DbSet<TB_UserToFollow> TB_UserToFollow { get; set; }
        public DbSet<TB_UserToType> TB_UserToType { get; set; }
        public DbSet<TB_User> TB_User { get; set; }
        #endregion

        #region Ware
        public DbSet<TB_Ware> TB_Ware { get; set; }
        public DbSet<TB_WareOrder> TB_WareOrder { get; set; }
        #endregion

        public TianXiaHuiForumManagementSystemDbContext(DbContextOptions<TianXiaHuiForumManagementSystemDbContext> options) : base(options)
        {

        }
    }
}
